package com.alibaba.aone.casestudy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.aone.casestudy.common.entity.FailureTime;

import com.alibaba.aone.casestudy.dao.FailureTimeDao;
import com.alibaba.aone.casestudy.service.FailureTimeService;

/**
 * 类FailureTimeServiceImpl.java的实现描述：TODO 类实现描述 
 * @author yongchun.chengyc 2011-4-26 下午11:03:14
 */
public class FailureTimeServiceImpl implements FailureTimeService {
	@Autowired
	private FailureTimeDao failureTimeDao;

	public List<FailureTime> getFailureTime(String failureNumber) {
		
		return failureTimeDao.getFailureTimeByFailureNumber(failureNumber);
	}

	public void add(FailureTime failureTime){
		failureTimeDao.addFailureTime(failureTime);
	}
	
	public void update(FailureTime failureTime){
		failureTimeDao.update(failureTime);
	}
}
